package me.alide.modules.survey.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import me.alide.modules.survey.entity.MySurvey;
import me.alide.modules.survey.entity.SurveyEntity;
import me.alide.modules.survey.form.StatusForm;
import me.alide.modules.survey.form.SurveyDetail;

import java.util.List;

/**
 * @author: Anzhen
 * @description:
 * @PROJECT_NAME: alide
 * @create: 2021-07-25 14:32
 **/
public interface SurveyService {
    
    int save(SurveyEntity surveyEntity);

    int delete(Long[] ids);

    int update(SurveyEntity surveyEntity);

    List<SurveyEntity> queryAll();

    SurveyEntity queryById(Long id);

    List<MySurvey> queryBySurveyUserId(Long surveyUserId, int page, int pageSize);

    List<MySurvey> queryBySurveyList(int page, int pageSize);

    void updateStatus(StatusForm status);

    List<SurveyDetail> queryList(String startTime, String endTime);
}
